package com.zzty.txj1.dao;

import com.zzty.txj1.entity.RunLimitTime;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface RunLimitTimeDao {
    @Select("select * from runLimitTime where clazzId=#{clazzId}")
    RunLimitTime getRunLimitTimeByClazzId(RunLimitTime runLimitTime);

    @Insert("insert into runLimitTime (clazzId,limitTime) values(#{clazzId},#{limitTime})")
    Integer addRunLimitTime(RunLimitTime runLimitTime);

    @Select("select * from runLimitTime")
    List<RunLimitTime> getAllRunLimitTime();

    @Update("update runLimitTime set limitTime=#{limitTime} where id=#{id}")
    Integer updateLimitTimeById(RunLimitTime runLimitTime);

    @Delete("delete from runLimitTime where id=#{id}")
    Integer deleteRunLimitTimeById(RunLimitTime runLimitTime);
}
